package com.api.rc.service;

import com.api.rc.enums.HostRuleKey;
import com.api.rc.model.HostRule;

/**
 * @author RenQiang
 * @date 2021/7/13
 */
public interface RuleService {
    /**
     * 根据规则Key获取规则
     *
     * @param hostRuleKey
     * @return
     */
    HostRule getHostRuleByKey(HostRuleKey hostRuleKey);

    /**
     * 保存或更新规则
     *
     * @param hostRuleKey
     * @param value
     */
    void saveOrUpdateRule(HostRuleKey hostRuleKey, Object value);
}
